package com.exam.service.ti;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.exam.common.vo.ExamTiVO;
import com.exam.common.vo.TiVO;
import com.exam.common.vo.page.PageModel;
import com.exam.dao.ti.ExamTiDao;
import com.exam.entity.ExamTi;

@Service
@Transactional
public class TiServiceImp implements TiService{

	@Autowired
	private ExamTiDao tiDao;
	
	@Override
	public Serializable save(ExamTi entity) {
		return tiDao.save(entity);
	}

	@Override
	public Serializable merge(ExamTi entity) {
		return tiDao.merge(entity);
	}

	@Override
	public void update(ExamTi entity) {
		tiDao.update(entity);
	}

	@Override
	public void saveOrUpdate(ExamTi entity) {
		tiDao.saveOrUpdate(entity);
	}

	@Override
	public void delete(ExamTi entity) {
		tiDao.delete(entity);
	}

	@Override
	public ExamTi findByKey(Serializable id) {
		return tiDao.findByKey(id);
	}

	@Override
	public List<ExamTi> findAll() {
		return tiDao.findAll();
	}

	@Override
	public PageModel<ExamTiVO> findByPage() {
		return tiDao.findByPage();
	}

	@Override
	public Map<Integer, String> getTiDifficulty() {
		return tiDao.getTiDifficulty();
	}

	@Override
	public Map<Integer, String> getTiType() {
		return tiDao.getTiType();
	}

	@Override
	public Map<Integer, String> getSubject() {
		return tiDao.getSubject();
	}

	@Override
	public ExamTiVO loadByTiId(int tiId) {
		return tiDao.loadByTiId(tiId);
	}

	@Override
	public PageModel<TiVO> findPage() {
		return tiDao.findPage();
	}


}
